//
//  NSWindow+canBecomeKeyWindow.m
//  Baidu
//
//  Created by C_HAO on 15/4/3.
//  Copyright (c) 2015年 C_HAO. All rights reserved.
//

#import "NSWindow+canBecomeKeyWindow.h"

@implementation NSWindow (canBecomeKeyWindow)

- (BOOL)canBecomeKeyWindow
{
    if([self class] == NSClassFromString(@"NSStatusBarWindow")) {
        if(![[NSApplication sharedApplication] isActive]) {
            return NO;
        }
    }
    return YES;
}


@end
